package com.kkb.test;

import com.kkb.pojo.Menu;
import com.kkb.service.ResourceService;
import com.kkb.service.RoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author Lxy
 * @create 2022-03-23 23:55
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring.xml"})
public class testResource {
    @Resource
    private ResourceService resourceService;

    @Test
    public void test(){
        Menu menu = new Menu();
        menu.setM_name("密码管理");
        int i = resourceService.validateMenuName(12, menu);
        System.out.println(i);

    }

}
